data = style_data_lookup (context);
value = _gtk_style_properties_peek_property (data->store,
- "color", state);
+ "color",
+ state,
+ NULL);
if (value)
{
data = style_data_lookup (context);
value = _gtk_style_properties_peek_property (data->store,
- "background-color", state);
+ "background-color",
+ state,
+ NULL);
if (value)
{
data = style_data_lookup (context);
value = _gtk_style_properties_peek_property (data->store,
- "border-color", state);
+ "border-color",
+ state,
+ NULL);
if (value)
{
data = style_data_lookup (context);
value = _gtk_style_properties_peek_property (data->store,
- "border-width", state);
+ "border-width",
+ state,
+ NULL);
if (value)
{
data = style_data_lookup (context);
value = _gtk_style_properties_peek_property (data->store,
- "padding", state);
+ "padding",
+ state,
+ NULL);
if (value)
{
data = style_data_lookup (context);
value = _gtk_style_properties_peek_property (data->store,
- "margin", state);
+ "margin",
+ state,
+ NULL);
if (value)
{
g_return_val_if_fail (priv->widget_path != NULL, NULL);
data = style_data_lookup (context);
- value = _gtk_style_properties_peek_property (data->store, "font", state);
+ value = _gtk_style_properties_peek_property (data->store, "font", state, NULL);
if (value)
return g_value_get_boxed (value);
}
const GValue *
-_gtk_style_properties_peek_property (GtkStyleProperties *props,
- const gchar *prop_name,
- GtkStateFlags state)
+_gtk_style_properties_peek_property (GtkStyleProperties *props,
+ const gchar *prop_name,
+ GtkStateFlags state,
+ const GtkStyleProperty **property)
{
GtkStylePropertiesPrivate *priv;
const GtkStyleProperty *node;
g_return_val_if_fail (prop_name != NULL, NULL);
node = _gtk_style_property_lookup (prop_name);
+ if (property)
+ *property = node;
if (!node)
{
#define __GTK_STYLE_PROPERTIES_PRIVATE_H__
#include "gtkstyleproperties.h"
+#include "gtkstylepropertyprivate.h"
G_BEGIN_DECLS
-const GValue * _gtk_style_properties_peek_property (GtkStyleProperties *props,
- const gchar *prop_name,
- GtkStateFlags state);
+const GValue * _gtk_style_properties_peek_property (GtkStyleProperties *props,
+ const gchar *prop_name,
+ GtkStateFlags state,
+ const GtkStyleProperty **property);
-void _gtk_style_properties_set_property_by_pspec (GtkStyleProperties *props,
- GParamSpec *pspec,
- GtkStateFlags state,
- const GValue *value);
+void _gtk_style_properties_set_property_by_pspec (GtkStyleProperties *props,
+ GParamSpec *pspec,
+ GtkStateFlags state,
+ const GValue *value);
G_END_DECLS